package com.github.itdachen.utils;

/**
 * Description:
 * Created by 王大宸 on 2022-08-14 15:58
 * Created with IntelliJ IDEA.
 */
public class GenConstants {

    /**
     * 后端继承 biz
     */
    public static final String TPL_BIZ = "biz";

    /**
     * 默认包名
     */
    public static final String PACKAGE_NAME = "com.github.itdachen";

    /**
     * 默认模块名称
     */
    public static final String MODULE_NAME = "admin";

    /**
     * 表单不展示字段
     */
    public static final String[] FIELD_NOT_FORM = {"id", "create_user", "create_user_id", "create_time",
            "update_time", "update_user", "update_user_id",
            "is_del", "del_flag", "tenant_id", "remove_flag",
            "ID", "CREATE_USER", "CREATE_USER_ID", "CREATE_TIME", "UPDATE_USER", "UPDATE_USER_ID", "UPDATE_TIME",
            "DEL_FLAG", "REMOVE_FLAG", "REMARK", "REMARKS", "IS_DELETE", "IS_DEL", "TENANT_ID"};

    /**
     * Dto/Vo 排除字段
     */
    public static final String[] USER_FIELD = {"create_user", "create_user_id", "create_time",
            "update_time", "update_user", "update_user_id", "remove_flag",
            "CREATE_USER", "CREATE_USER_ID", "CREATE_TIME", "UPDATE_USER", "UPDATE_USER_ID", "UPDATE_TIME",
            "DEL_FLAG", "REMOVE_FLAG", "REMARK", "REMARKS", "IS_DELETE", "IS_DEL", "TENANT_ID"};

    /**
     * 查询不需要的字段
     */
    public static final String[] COLUMNNAME_NOT_QUERY = {"id", "create_user", "create_user_id", "create_time",
            "update_time", "update_user", "update_user_id",
            "del_flag", "remark", "remarks", "is_del", "remove_flag",
            "attr1", "attr2", "attr3", "attr4", "attr5", "attr6", "attr7", "attr8", "attr9", "attr10",
            "ID", "CREATE_USER", "CREATE_USER_ID", "CREATE_TIME", "UPDATE_USER", "UPDATE_USER_ID", "UPDATE_TIME",
            "DEL_FLAG", "REMOVE_FLAG", "REMARK", "REMARKS", "IS_DELETE", "IS_DEL", "TENANT_ID",
            "ATTR1", "ATTR2", "ATTR3", "ATTR4", "ATTR5", "ATTR6", "ATTR7", "ATTR8", "ATTR9", "ATTR10",
    };


    /**
     * 必填排除字典
     */
    public static final String[] COLUMN_NAME_NOT_REQUIRED = {"id", "create_user", "create_user_id", "create_time",
            "update_time", "update_user", "update_user_id", "remove_flag",
            "remark", "remarks", "is_del", "del_flag", "descriptions", "description", "tenant_id",
            "attr1", "attr2", "attr3", "attr4", "attr5", "attr6", "attr7", "attr8", "attr9", "attr10",
            "ID", "CREATE_USER", "CREATE_USER_ID", "CREATE_TIME", "UPDATE_USER", "UPDATE_USER_ID", "UPDATE_TIME",
            "DEL_FLAG", "REMOVE_FLAG", "REMARK", "REMARKS", "IS_DELETE", "IS_DEL", "TENANT_ID", "DESCRIPTIONS", "DESCRIPTION",
            "ATTR1", "ATTR2", "ATTR3", "ATTR4", "ATTR5", "ATTR6", "ATTR7", "ATTR8", "ATTR9", "ATTR10",
    };

    /**
     * 页面表格分页不需要显示的列表字段
     */
    public static final String[] COLUMN_NAME_NOT_LIST = {"id", "create_user", "create_user_id", "create_time",
            "update_time", "update_user", "update_user_id", "remove_flag",
            "remark", "remarks", "is_del", "del_flag", "tenant_id", "descriptions", "description",
            "attr1", "attr2", "attr3", "attr4", "attr5", "attr6", "attr7", "attr8", "attr9", "attr10",
            "ID", "CREATE_USER", "CREATE_USER_ID", "CREATE_TIME", "UPDATE_USER", "UPDATE_USER_ID", "UPDATE_TIME",
            "DEL_FLAG", "REMOVE_FLAG", "REMARK", "REMARKS", "IS_DELETE", "IS_DEL", "TENANT_ID",
            "ATTR1", "ATTR2", "ATTR3", "ATTR4", "ATTR5", "ATTR6", "ATTR7", "ATTR8", "ATTR9", "ATTR10",
    };

    /**
     * 需要
     */
    public static final String REQUIRE = "1";

    /**
     * 不需要
     */
    public static final String NOT_REQUIRE = "0";

    /**
     * 相等查询
     */
    public static final String QUERY_EQ = "EQ";

    /**
     * 模糊查询
     */
    public static final String QUERY_LIKE = "LIKE";

}
